﻿using System;
using System.Security.Principal;
using Project.MVC.PhanQuyen.Model;
using System.Web;

namespace Project.MVC.PhanQuyen.Services
{
    public class WSUserPrincipal : IPrincipal
    {
        IIdentity m_identity;
        PQNguoiDungInfo m_userInfo;

        public WSUserPrincipal(IIdentity identity, PQNguoiDungInfo userInfo)
        {
            this.m_identity = identity;
            this.m_userInfo = userInfo;
        }

        public PQNguoiDungInfo UserInfo
        {
            get { return m_userInfo; }
        }

        public VuViecEnum Tasks { get; set; }

        #region IPrincipal Members

        public IIdentity Identity
        {
            get { return m_identity; }
        }

        public bool IsInRole(string role)
        {
            throw new NotImplementedException();
        }

        #endregion        
    }
}